/* 全局样式 */
:root {
    --primary-color: #4e73df;
    --secondary-color: #5a5c69;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

body {
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fc;
    color: #5a5c69;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color) !important;
    letter-spacing: 0.05em;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* 内容区域样式 */
.main-content {
    min-height: calc(100vh - 150px);
    padding: 2rem 0;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.25rem;
}

.card-header.bg-primary {
    background-color: var(--primary-color) !important;
    color: white;
}

.card-header.bg-success {
    background-color: var(--success-color) !important;
    color: white;
}

.card-header.bg-info {
    background-color: var(--info-color) !important;
    color: white;
}

.card-header.bg-warning {
    background-color: var(--warning-color) !important;
    color: white;
}

.card-body {
    padding: 1.25rem;
}

/* 按钮样式 */
.btn {
    border-radius: 0.35rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #17a673;
    border-color: #169b6b;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 表格样式 */
.table {
    color: #5a5c69;
}

.table thead th {
    border-bottom: 2px solid #e3e6f0;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fc;
}

/* 进度条样式 */
.progress {
    height: 0.8rem;
    background-color: #eaecf4;
    border-radius: 0.35rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    border-radius: 0.35rem;
}

/* 图标圆圈样式 */
.icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 首页特定样式 */
.homepage-hero {
    padding: 4rem 0;
    background: linear-gradient(87deg, #4e73df 0, #224abe 100%);
    color: white;
}

.homepage-hero h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

/* 登录和注册页面 */
.auth-card {
    margin-top: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.auth-card .card-body {
    padding: 3rem;
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fc;
    padding: 1.5rem 0;
    border-top: 1px solid #e3e6f0;
    color: #5a5c69;
}

/* 数据分析仪表盘卡片 */
.stat-card {
    border-left: 0.25rem solid;
    border-radius: 0.35rem;
}

.stat-card.primary {
    border-left-color: var(--primary-color);
}

.stat-card.success {
    border-left-color: var(--success-color);
}

.stat-card.info {
    border-left-color: var(--info-color);
}

.stat-card.warning {
    border-left-color: var(--warning-color);
}

/* 学习路径卡片 */
.path-card {
    transition: transform 0.3s;
}

.path-card:hover {
    transform: translateY(-5px);
}

.path-card.recommended {
    border-left: 0.25rem solid var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .auth-card .card-body {
        padding: 1.5rem;
    }
    
    .homepage-hero {
        padding: 2rem 0;
    }
} 